# 循环语句
# while 循环
# a = 1
# while a < 7:
#     if(a % 2 == 0):
#         print(a, "is even")
#     else:
#         print(a, "is odd")
#     a += 1

# for循环
# for letter in 'Python':
#     print(letter)
#
# fruits = ['banana', 'apple', 'mango']
# # for fruit in fruits:
# #     print(fruit)
# for index in range(len(fruits)):
#     print(fruits[index])

# break语句
# for letter in 'python':
#     if letter == 'h':
#         break
#     print(letter)

# continue语句
# for letter in 'python':
#     if letter == 'h':
#         continue
#     print(letter)

# pass 语句
# for letter in 'Python':
#     if letter == 'h':
#         pass
#         print("pass语句")
#     print(letter)
